#ifndef __ATL_KBDDEFS__
#define __ATL_KBDDEFS__

#define KBD_BUFSIZE 512

#define KBD_CTRL_BIT    1<<0
#define KBD_ALT_BIT     1<<1
#define KBD_SHIFT_BIT   1<<2
#define KBD_CPSLCK_BIT  1<<3
#define KBD_NUMLCK_BIT  1<<4
#define KBD_SCLLCK_BIT  1<<5
#define KBD_WIN_BIT	    1<<6
#define KBD_MENU_BIT    1<<7
#define KBD_MSG_TYPE    0
#define KBD_MSG_PRESS   1
#define KBD_MSG_RELEASE 2

typedef struct kbdmsg {
	uint8_t scancode;
	uint8_t msg_type;
	uint8_t modifiers;
} kbdmsg_t;
#endif